home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 139
/
(Vol 139) Sep 24 2011.iso
/
Games
/
spin_kicker.swf
/
scripts
/
__Packages
/
Ball_class.as
next >
Wrap
Text File
|
2011-09-24
|
8KB
|
215 lines
var §\x01§ = 485;
if(eval("\x01") == 485)
{
set("\x01",eval("\x01") - 390);
§§push(true);
§§push(false);
§§push(false);
§§push(true);
while(true)
{
if(§§pop())
{
}
if(§§pop())
{
}
if(§§pop())
{
break;
}
§§push(true);
§§push(false);
}
if(!eval("\x01")["\x02"])
{
eval("\x01")["\x02"] extends eval(§§constant(4));
var _loc2_ = eval("\x01")["\x02"] = function()
{
super();
this["\x03"]["\x04"] = false;
}[§§constant(5)];
_loc2_[§§constant(6)] = function(direction, power)
{
power /= 2;
_root[§§constant(8)][§§constant(9)](§§constant(7));
this[§§constant(10)] = true;
this[§§constant(11)] = power * eval(§§constant(12))[§§constant(13)](direction * 0.017453292519943295);
this[§§constant(14)] = power * eval(§§constant(12))[§§constant(15)](direction * 0.017453292519943295);
};
_loc2_[§§constant(16)] = function()
{
var _loc4_ = 10000;
var _loc3_ = 0;
var _loc5_ = 0;
var _loc2_ = 1;
while(_loc2_ <= 20)
{
_loc3_ = eval(§§constant(12))[§§constant(21)](eval(§§constant(12))[§§constant(19)](this[§§constant(17)][_loc2_][§§constant(18)] - this[§§constant(18)],2) + eval(§§constant(12))[§§constant(19)](this[§§constant(17)][_loc2_][§§constant(20)] - this[§§constant(20)],2));
if(_loc3_ < _loc4_)
{
_loc4_ = _loc3_;
_loc5_ = _loc2_;
}
_loc2_ = _loc2_ + 1;
}
return this[§§constant(17)][_loc5_];
};
_loc2_[§§constant(22)] = function()
{
this[§§constant(17)] = _root[§§constant(8)][§§constant(17)];
this[§§constant(11)] = eval(§§constant(12))[§§constant(23)]() * 5;
if(eval(§§constant(12))[§§constant(23)]() > 50)
{
this[§§constant(11)] *= -1;
}
this[§§constant(14)] = eval(§§constant(12))[§§constant(23)]() * 5;
if(eval(§§constant(12))[§§constant(23)]() > 50)
{
this[§§constant(14)] *= -1;
}
};
_loc2_[§§constant(24)] = function()
{
var _loc3_ = undefined;
var _loc6_ = undefined;
var _loc5_ = undefined;
if(this[§§constant(25)])
{
this[§§constant(22)]();
this[§§constant(25)] = false;
}
if(this[§§constant(10)])
{
_loc3_ = this[§§constant(16)]();
_root[§§constant(8)][§§constant(26)] = _loc3_;
if(_loc3_[§§constant(18)] > this[§§constant(18)])
{
this[§§constant(11)] += this[§§constant(27)];
}
if(_loc3_[§§constant(18)] < this[§§constant(18)])
{
this[§§constant(11)] -= this[§§constant(27)];
}
if(_loc3_[§§constant(20)] > this[§§constant(20)])
{
this[§§constant(14)] += this[§§constant(27)];
}
if(_loc3_[§§constant(20)] < this[§§constant(20)])
{
this[§§constant(14)] -= this[§§constant(27)];
}
if(this[§§constant(11)] > this[§§constant(28)])
{
this[§§constant(11)] = this[§§constant(28)];
}
if(this[§§constant(14)] > this[§§constant(28)])
{
this[§§constant(14)] = this[§§constant(28)];
}
if(this[§§constant(11)] < this[§§constant(28)] * -1)
{
this[§§constant(11)] = this[§§constant(28)] * -1;
}
if(this[§§constant(14)] < this[§§constant(28)] * -1)
{
this[§§constant(14)] = this[§§constant(28)] * -1;
}
if(this[§§constant(11)] > 0)
{
this[§§constant(11)] -= this[§§constant(29)];
}
else
{
this[§§constant(11)] += this[§§constant(29)];
}
if(this[§§constant(14)] > 0)
{
this[§§constant(14)] -= this[§§constant(29)];
}
else
{
this[§§constant(14)] += this[§§constant(29)];
}
if(this[§§constant(18)] > 625 && this[§§constant(11)] > 0)
{
this[§§constant(11)] *= -1;
}
if(this[§§constant(18)] < 10 && this[§§constant(11)] < 0)
{
this[§§constant(11)] *= -1;
}
if(this[§§constant(20)] < 5 && this[§§constant(14)] < 0)
{
this[§§constant(14)] *= -1;
}
if(this[§§constant(20)] > 425 && this[§§constant(14)] > 0)
{
this[§§constant(14)] *= -1;
}
this[§§constant(18)] += this[§§constant(11)];
this[§§constant(20)] += this[§§constant(14)];
var _loc4_ = 1;
while(_loc4_ <= 20)
{
if(this[§§constant(30)](this[§§constant(17)][_loc4_]))
{
if(this[§§constant(11)] < 0)
{
_loc6_ = this[§§constant(11)] * -1;
this[§§constant(11)] += this[§§constant(31)];
}
else
{
_loc6_ = this[§§constant(11)];
this[§§constant(11)] -= this[§§constant(31)];
}
if(this[§§constant(14)] < 0)
{
_loc5_ = this[§§constant(14)] * -1;
this[§§constant(14)] += this[§§constant(31)];
}
else
{
_loc5_ = this[§§constant(14)];
this[§§constant(14)] -= this[§§constant(31)];
}
if(_loc6_ + _loc5_ < 2)
{
this[§§constant(11)] = 0;
this[§§constant(14)] = 0;
this[§§constant(10)] = false;
if(_loc3_[§§constant(32)])
{
this[§§constant(18)] = _loc3_[§§constant(18)] - _loc3_[§§constant(33)];
this[§§constant(20)] = _loc3_[§§constant(20)];
}
else
{
this[§§constant(18)] = _loc3_[§§constant(18)] + _loc3_[§§constant(33)];
this[§§constant(20)] = _loc3_[§§constant(20)];
}
}
}
_loc4_ = _loc4_ + 1;
}
}
};
_loc2_[§§constant(28)] = 10;
_loc2_[§§constant(29)] = 0.125;
_loc2_[§§constant(27)] = 0.25;
_loc2_[§§constant(31)] = 0.25;
_loc2_[§§constant(11)] = 0;
_loc2_[§§constant(14)] = 0;
_loc2_[§§constant(25)] = true;
_loc2_[§§constant(17)] = new §\§\§constant(34)§();
_loc2_[§§constant(10)] = true;
§§push(§§constant(35)(eval("\x01")["\x02"][§§constant(5)],null,1));
}
§§pop();
}
else if(eval("\x01") == 95)
{
set("\x01",eval("\x01") + 299);
}